package xixirupan.tmgp.tencent.com.vmeim.ui.discover.view;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.ImageView;

import com.sch.rfview.AnimRFRecyclerView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;
import xixirupan.tmgp.tencent.com.vmeim.R;
import xixirupan.tmgp.tencent.com.vmeim.ui.discover.model.DiscoverBiz;
import xixirupan.tmgp.tencent.com.vmeim.ui.discover.model.IDiscoverData;

/**
 * Created by lenovo on 2016/10/18.
 */

public class DiscoverFragment extends Fragment {


    @BindView(R.id.edit_discover)
    EditText editDiscover;
    @BindView(R.id.imageView_discover_add)
    ImageView imageViewDiscoverAdd;
    @BindView(R.id.recyclerView_discover)
    AnimRFRecyclerView recyclerViewDiscover;
    private Unbinder bind;

    private Context context;

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        this.context = context;

    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_discover_layout, container, false);
        bind = ButterKnife.bind(this, view);
//        DiscoverBiz biz =new DiscoverBiz();
//        biz.getDataDiscover(new IDiscoverData() {
//            @Override
//            public void post(String url) {
//               // Log.i("datainer","-------------》》》》"+url);
//            }
//        });
        return view;
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        bind.unbind();
    }

    @OnClick({R.id.edit_discover, R.id.imageView_discover_add})
    public void onClick(View view) {
        switch (view.getId()) {
            //点击跳转搜索页面
            case R.id.edit_discover:

                break;

            //点击添加好友
            case R.id.imageView_discover_add:

                break;
        }
    }
}
